package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuyunbin
 * @since 2025-04-04
 */
@Getter
@Setter
@TableName("tb_archives")
public class Archives implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 归档ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 分类
     */
    private String category;

    /**
     * 年份
     */
    private Integer year;

    /**
     * 月份，01-12
     */
    private String month;

    /**
     * 发布时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;
}
